'Declaration Protected Overloads Function Invoke( _
ByVal methodA delegate to a method that takes parameters of the same number and type that are contained in the args parameter.As System.Delegate, _
ByVal ParamArray argsAn array of objects to pass as arguments to the specified method. This parameter can be null if the method takes no arguments.() As System.Object _
) As System.Object
protected System.Object Invoke(
System.Delegate method,
params System.Object[] args
)
protected: System.Object Invoke(
System.Delegate* method,
params System.Object[]* args
)
protected:
System.Object Invoke(
System.Delegate^ method,
... array<System.Object>^ args
)
Parameters
- method
- A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.
- args
- An array of objects to pass as arguments to the specified method. This parameter can be null if the method takes no arguments.
Return Value
The return value from the delegate being invoked, or null if the delegate has no return value.